package com.one.group.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.activerecord.Model;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 岗位表
 *
 * @Author wanbo
 * @Date 2025/10/11 15:04
 */
@Table("sp_position")
@Data
public class Position extends Model<Position> {

    @Id
    private Long id;

    @Column(value = "pos_number")
    // 岗位编号
    private String posNumber;

    // 小区id
    @Column(value = "cell_id")
    private Long cellId;

    // 岗位名称
    private String name;

    // 排序
    private Integer ordered;

    // 父级id
    @Column(value = "parent_id")
    private Long parentId;

    // 类型（0为岗位部门，1为岗位）
    private Integer type;

    // 租户id
    @Column(value = "tenant_id")
    private Long tenantId;

    //逻辑删除
    @Column(value = "is_deleted")
    private Integer isDeleted;

    @Column(value = "create_time")
    private Date createTime;

    @Column(value = "update_time")
    private Date updateTime;

}
